package com.huike.stock_analysis.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.huike.stock_analysis.dao.Test;

/**
 * 
 * @author mzLEI
 * 用户接口 登录 注册
 */
@RestController
@RequestMapping("/user")
public class UserController {
	@Autowired
	private Test test;
	//新用户注册
	@RequestMapping("/register")
	public String register() {
		return "";
	}
	
	//用户登录
	@RequestMapping("/login")
	public String login(String username, String password) {
		return "";
	}
	@RequestMapping("/test")
	public String test1() {
		test.query("1111", "222");
		return "ddd";
	}

}
